﻿<phone:PhoneApplicationPage 
    x:Class="WakeApp.AggiungiSveglia"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="None" ImageSource="bg-sveglia.jpg"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0" Width="480" Height="130">
        	<StackPanel.Background>
        		<ImageBrush Stretch="None" ImageSource="title-WakeApp.png"/>
        	</StackPanel.Background>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <!--toolkit:TimePicker HorizontalAlignment="Left" Margin="6,6,0,0" Name="timePicker1" VerticalAlignment="Top"  />
            <ToggleButton  Margin="0,84,381,0" Name="Lun" VerticalAlignment="Top" Content="L" Checked="Lun_Checked" Unchecked="Lun_Unchecked" BorderBrush="{x:Null}" />
            <ToggleButton Content="M" Height="77" HorizontalAlignment="Left" Margin="60,84,0,0" Name="Mar" VerticalAlignment="Top" Width="77" Checked="Mar_Checked" Unchecked="Mar_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton Content="M" Height="77" HorizontalAlignment="Left" Margin="120,84,0,0" Name="Mer" VerticalAlignment="Top" Width="77" Checked="Mer_Checked" Unchecked="Mer_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton Content="G" Height="77" HorizontalAlignment="Left" Margin="180,84,0,0" Name="Gio" VerticalAlignment="Top" Width="77" Checked="Gio_Checked" Unchecked="Gio_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton Content="V" Height="77" HorizontalAlignment="Left" Margin="240,84,0,0" Name="Ven" VerticalAlignment="Top" Width="77" Checked="Ven_Checked" Unchecked="Ven_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton Content="S" Height="77" HorizontalAlignment="Left" Margin="300,84,0,0" Name="Sab" VerticalAlignment="Top" Width="77" Checked="Sab_Checked" Unchecked="Sab_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton Content="D" Height="77" HorizontalAlignment="Left" Margin="360,84,0,0" Name="Dom" VerticalAlignment="Top" Width="77" Checked="Dom_Checked" Unchecked="Dom_Unchecked" BorderBrush="{x:Null}"/-->


            <toolkit:TimePicker Margin="146,97,146,0" Name="timePicker1" VerticalAlignment="Top" Height="86" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" Background="#BFFFFFFF">
            	<toolkit:TimePicker.RenderTransform>
            		<CompositeTransform ScaleX="2" ScaleY="2"/>
            	</toolkit:TimePicker.RenderTransform>

            </toolkit:TimePicker>
            <ToggleButton Margin="-3,256,382,305" Name="Lun" Checked="Lun_Checked" Width="77" Unchecked="Lun_Unchecked" BorderBrush="{x:Null}" RenderTransformOrigin="0,0" />
            <ToggleButton HorizontalAlignment="Left" Margin="61,256,0,305" Name="Mar" Width="77" Checked="Mar_Checked" Unchecked="Mar_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="125,256,0,305" Name="Mer" Width="77" Checked="Mer_Checked" Unchecked="Mer_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="189,256,0,305" Name="Gio" Width="77" Checked="Gio_Checked" Unchecked="Gio_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="253,256,0,305" Name="Ven" Width="77" Checked="Ven_Checked" Unchecked="Ven_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="317,256,0,305" Name="Sab" Width="77" Checked="Sab_Checked" Unchecked="Sab_Unchecked" BorderBrush="{x:Null}"/>
            <ToggleButton HorizontalAlignment="Left" Margin="382,256,0,305" Name="Dom" Width="77" Checked="Dom_Checked" Unchecked="Dom_Unchecked" BorderBrush="{x:Null}"/>
            <TextBlock HorizontalAlignment="Left" Margin="9,0,0,245" Text="Mon" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White" />
            <TextBlock HorizontalAlignment="Left" Margin="73,0,0,245" Text="Tus" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="137,0,0,245" Text="Wed" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="201,0,0,245" Text="Thu" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="264,0,0,245" Text="Fri" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="328,0,0,245" Text="Sat" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>
            <TextBlock HorizontalAlignment="Left" Margin="393,0,0,245" Text="Sun" Width="54" TextAlignment="Center" Height="37" VerticalAlignment="Bottom" Foreground="White"/>

            <Button Name="ButtonAdd" Content="Save" Height="110" Margin="0,0,0,8" VerticalAlignment="Bottom" BorderThickness="0" Width="110" Foreground="{x:Null}" HorizontalAlignment="Center" d:LayoutOverrides="Width" Click="ButtonAdd_Click">
                <Button.Background>
                    <ImageBrush Stretch="None" ImageSource="icona-aggiungi.png"/>
                </Button.Background>
            </Button>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>
